package cn.smbms.service;

import java.util.List;

import cn.smbms.pojo.User;

public interface UserServiceI {

	// 用户登录
	User login(String userCode, String userPassword);

	// 修改用户密码
	int updatePwd(Integer id, String userPassword);

	public List<User> getUserListByUserName(String name, Integer pageNo);

	public int count(String name);

	public User getUserById(Integer id);

	public int updateUser(User user);

	public int addUser(User user);

	public int deleteUser(Integer id);

	public boolean yanZhengOldPassword(Integer id, String password);

	public boolean yanZhengUserCodeExists(String userCode);

	void deleteUserById(int i);

}